//
//  ViewControllerManager.h
//  PlayBall
//
//  Created by Edward Zhang on 12-5-4.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JddFollowNumberHistoryViewController.h"
#import "JddFollowNumberDetailViewController.h"

#import "JddRegisterViewController.h"
#import "JddNavigationController.h"
//#import "JddHomeViewController.h"
#import "JddLoginViewController.h"
#import "JddLotteryHallViewController.h"
//#import "JddServiceViewController.h"
#import "JddLotteryOpenViewController.h"
#import "JddLotteryOpenViewDetailController.h"
#import "JddProfileUpdateViewController.h"
#import "JddSettingViewController.h"
#import "JddUserCenterViewController.h"
#import "JddUCBuyHistoryViewController.h"
#import "JddOldBuyDetailDigitalViewController.h"
#import "JddBuyDetailDigitalViewController.h"
#import "JddFollowNumberHistoryViewController.h"
#import "JddFollowNumberDetailViewController.h"
#import "JddAccountDetailViewController.h"
#import "JddRechargeWaySelectViewController.h"
#import "JddAlipayRechargeViewController.h"
#import "JddWithdrawViewController.h"
#import "JddReBindMobileViewController.h"
#import "JddBindMobileSucceedViewController.h"
#import "JddBindCardViewController.h"
#import "JddModifyPasswordViewController.h"
#import "JddPickNumShuangSeQiuViewController.h"
#import "JddPickNumShuangSeQiuListViewController.h"
#import "JddPickNumFC3DViewController.h"
#import "JddPickNumFC3DListViewController.h"
#import "JddPickNumDaLeTouViewController.h"
#import "JddPickNum11s5ViewController.h"
#import "JddPickNum11s5ListViewController.h"
#import "JddPickNumSportViewController.h"
#import "JddBindCardNextViewController.h"
#import "JddPickNumDaLeTouListViewController.h"
#import "JddPickNumSportListViewController.h"
#import "JddSportResultController.h"
#import "JddLotteryOpenListViewController.h"
#import "JddBindCardSucceedViewController.h"
#import "JddAboutViewController.h"
#import "JddContactUsViewController.h"
#import "JddHowToPlaySSQViewController.h"

#import "JddBindUserViewController.h"
#import "JddBackViewController.h"
#import "JddBindMobileViewController.h"

#import "JddPickNum7lcViewController.h"
#import "JddPickNum7lcListViewController.h"

#import "JddPickNum7xcViewController.h"
#import "JddPickNum7xcListViewController.h"

#import "JddPickNumBasketBallViewController.h"
#import "JddPickNumBasketBallListViewController.h"

#import "JddPickNumBDViewController.h"
#import "JddPickNumBDListViewController.h"

#import "JddJclqResultController.h"
#import "JddKjinfoBDResultController.h"

#import "JddPickNumP3ViewController.h"
#import "JddPickNumP3ListViewController.h"

#import "JddPickNumP5ViewController.h"
#import "JddPickNumP5ListViewController.h"

//#import "PickNum22x5ViewController.h"
//#import "PickNum22x5ListViewController.h"

#import "JddPickNumSFCViewController.h"
#import "JddPickNumSFCListViewController.h"

#import "JddPickNumRX9ViewController.h"
#import "JddPickNumRX9ListViewController.h"

#import "JddLotteryOpenDetailSFCViewController.h"
#import "JddScoreViewController.h"

#import "JddNoticeDetailViewController.h"
#import "JddTogetherBuyViewController.h"
#import "JddTogetherBuyViewControllerDetail.h"

#import "JddPickNum11YDJViewController.h"
#import "JddPickNum11YDJListViewController.h"

#import "JddPickNumCQSSViewController.h"
#import "JddPickNumCQSSListViewController.h"

#import "JddPickNumSportViewHHSelectController.h"
#import "JddUmRechargeViewController.h"

#import "JddBasketBallHHSelectController.h"
#import "JddReadRegisterProtocolViewController.h"
#import "JddReadLotteryProtocolViewController.h"
#import "JddSafeCenterViewController.h"
#import "JddCustomerServiceViewController.h"//zbj add
#import "FiveMatchViewController.h"
#import "LookForPasswordViewController.h"
#import "ConfirmationViewController.h"
#import "JddChangePwdViewController.h"

#import "UnionListViewController.h"
#import "WoDeYeViewController.h"
#import "MyLinkViewController.h"

enum {
//    CONTROLLER_HOME,
    CONTROLLER_REGISTER,
    CONTROLLER_LOGIN,
    CONTROLLER_LOTTERY_HALL,
//    CONTROLLER_LOTTERY_SERVICE,
    CONTROLLER_LOTTERY_OPEN,
    CONTROLLER_PROFILE_UPDATE,
    CONTROLLER_SETTING,
    CONTROLLER_SCORE,
    CONTROLLER_USER_CENTER,
    CONTROLLER_BUY_HISTORY,
    CONTROLLER_BUY_DETAIL_DIGITAL,
    CONTROLLER_BUY_DETAIL_DIGITAL_OLD,
    CONTROLLER_FOLLOW_NUMBER_HISTORY,
    CONTROLLER_FOLLOW_NUMBER_DETAIL,
    CONTROLLER_ACCOUNT_DETAIL,
    CONTROLLER_SELECT_RECHARGE_WAY,
    CONTROLLER_ALIPAY_RECHARGE,
    CONTROLLER_WITHDRAW,
    CONTROLLER_RE_BIND_MOBILE,
    CONTROLLER_BIND_MOBILE,
    CONTROLLER_BIND_MOBILE_SUCCEEDED,
    CONTROLLER_BIND_CARD_USER_INFO,
    CONTROLLER_BIND_CARD_CARD_INFO,
    CONTROLLER_MODIFY_PASSWORD,
    CONTROLLER_PICK_NUM_SHUANGSEQIU,
    CONTROLLER_PICK_NUM_SHUANGSEQIU_LIST,
    CONTROLLER_PICK_NUM_DALETOU_LIST,
    CONTROLLER_PICK_NUM_SPORT_LIST,
    CONTROLLER_PICK_NUM_DALETOU,
    CONTROLLER_PICK_NUM_11s5,
    CONTROLLER_PICK_NUM_11S5_LIST,
    CONTROLLER_PICK_NUM_SPORT,
    CONTROLLER_LOTTERY_OPEN_DETAIL_BD,
    CONTROLLER_LOTTERY_OPEN_DETAIL,
    CONTROLLER_SELECT_FIVE_OPEN_DETAIL,
    CONTROLLER_SPORT_RESULT,
    CONTROLLER_LOTTERY_OPEN_LIST,
    CONTROLLER_BIND_CARD_SUCCESSED,
    CONTROLLER_ABOUT,
    CONTROLLER_CONTACT_US,
    CONTROLLER_CHECK_VERSION,
    CONTROLLER_HOW_TO_PLAY_SSQ,
    CONTROLLER_BACK,
    CONTROLLER_BIND_USER,
    CONTROLLER_PICK_NUM_FC3D,
    CONTROLLER_PICK_NUM_FC3D_LIST,
    CONTROLLER_PICK_NUM_7L,
    CONTROLLER_PICK_NUM_7L_LIST,
    CONTROLLER_PICK_NUM_7X,
    CONTROLLER_PICK_NUM_7X_LIST,
    CONTROLLER_PICK_NUM_BASKETBALL,
    CONTROLLER_PICK_NUM_BASKETBALL_LIST,
    CONTROLLER_PICK_NUM_BD,
    CONTROLLER_PICK_NUM_BD_LIST,
    CONTROLLER_JCBB_RESULT,
    CONTROLLER_BD_RESULT,
    CONTROLLER_PICK_NUM_P3,
    CONTROLLER_PICK_NUM_P3_LIST,
    CONTROLLER_PICK_NUM_P5,
    CONTROLLER_PICK_NUM_P5_LIST,
//    CONTROLLER_PICK_NUM_22X5,
//    CONTROLLER_PICK_NUM_22X5_LIST,
    CONTROLLER_PICK_NUM_SFC,
    CONTROLLER_PICK_NUM_SFC_LIST,
    CONTROLLER_PICK_NUM_RX9,
    CONTROLLER_PICK_NUM_RX9_LIST,
    CONTROLLER_NOTICE_DETAIL,
    CONTROLLER_TOGETHER_BUY,
    CONTROLLER_TOGETHER_BUY_DETAIL,
    CONTROLLER_PICK_NUM_11YDJ,
    CONTROLLER_PICK_NUM_11YDJ_LIST,
    CONTROLLER_PICK_NUM_CQSS,
    CONTROLLER_PICK_NUM_CQSS_LIST,
    CONTROLLER_PICK_NUM_HH_SELECT,
    CONTROLLER_UM_RECHARGE,
    CONTROLLER_BASKET_BALL_HH_SELECT,
    CONTROLLER_READ_REGISTER_PROTOCOL,
    CONTROLLER_READ_LOTTERY_PROTOCOL,
    CONTROLLER_USERCENTER_SAFECENTER,
    CONTROLLER_MORE_CUSTOMER_SERVICEl,
    CONTROLLER_FIVE_MATCH,
    CONTROLLER_LOOKFOR_PASSWORD,
    CONTROLLER_CONFIRM,
    CONTROLLER_CHANGEPWD,
    CONTROLLER_UNION_MYLIST,
    CONTROLLER_UNION_MYYEJI,
    CONTROLLER_UNION_LIANJIE
    };

@interface JddViewControllerManager : NSObject<UITabBarDelegate>{
    
    UnionListViewController *_unionListController;
    WoDeYeViewController *_wodeYejicControlller;
    MyLinkViewController *_myLinkController;

//    JddHomeViewController          *_homeController;
    JddRegisterViewController      *_registerController;
    JddLoginViewController         *_loginController;
    JddLotteryHallViewController   *_lotteryHallController;
    JddLotteryOpenViewController   *_lotteryOpernController;
//    JddServiceViewController       *_serviceController;
    JddProfileUpdateViewController *_profileUpdateController;
    JddSettingViewController       *_settingController;     
    JddScoreViewController       *_scoreController;
    JddUserCenterViewController    *_userCenterController;
    JddUCBuyHistoryViewController  *_buyHistoryController;
    JddBuyDetailDigitalViewController *_buyDetailDigitalController;
    JddOldBuyDetailDigitalViewController *_oldbuyDetailDigitalController;
    JddFollowNumberHistoryViewController *_followNumberHistoryController;
    JddFollowNumberDetailViewController *_followNumberDetailController;
    JddAccountDetailViewController *_accountDetailController;
    JddRechargeWaySelectViewController *_rechargeWaySelectController;
    JddAlipayRechargeViewController *_alipayRechargeController;
    JddUmRechargeViewController *_umRechargeController;
    JddWithdrawViewController      *_withdrawController;
    JddBindMobileViewController    *_reBindMobileContoller;
    JddReBindMobileViewController    *_bindMobileContoller;
    JddBindMobileSucceedViewController *_bindMobileSucceededController;
    JddBindCardViewController      *_bindCardController;
    JddModifyPasswordViewController *_modifyPasswordController;
    JddPickNumShuangSeQiuViewController *_pickNumShuangSeQiuController;
    JddPickNumShuangSeQiuListViewController *_pickNumShuangSeQiuListController;
    JddPickNumFC3DViewController *_pickNumFc3dController;
    JddPickNumFC3DListViewController *_pickNumFc3dListController;
    JddPickNumDaLeTouViewController *_pickNumDaLeTouController;
    JddPickNumDaLeTouListViewController *_pickNumDaLeTouListController;    
    JddPickNum11s5ViewController   *_pickNum11s5Controller;
    JddPickNum11s5ListViewController   *_pickNum11s5ListController;
    JddPickNumSportViewController  *_pickNumSportController;
    JddPickNumSportListViewController *_pickNumSportListViewController;
    JddBindCardNextViewController  *_bindCardNextController;
    JddLotteryOpenViewDetailController *_lotteryOpenViewDetailController;
    JddSportResultController *_sportResultController;
    JddLotteryOpenListViewController *_lotteryOpenListViewController;
    JddBindCardSucceedViewController *_bindCardSucceedViewController;
    JddAboutViewController    *_aboutController;
    JddContactUsViewController   *_contactUsController;
    JddHowToPlaySSQViewController  *_howToPlaySSQController;
    JddBindUserViewController      *_bindUserViewController;
    JddBackViewController          *_backViewController;
    
    JddPickNum7lcViewController *_pickNum7lViewController;
    JddPickNum7lcListViewController *_pickNum7lcListViewController;
    JddPickNum7xcViewController    *_pickNum7xcViewController;
    JddPickNum7xcListViewController *_pickNum7xcListViewController;
    
    JddPickNumBasketBallViewController *_pickNumBasketBallViewController;
    JddPickNumBasketBallListViewController *_pickNumBasketBallListViewController;
    
    JddPickNumBDViewController *_pickNumBDViewController;
    JddPickNumBDListViewController *_pickNumBDListViewController;
    
    JddJclqResultController *_jclqResultController;
    JddKjinfoBDResultController *_kjinfoBDResultController;
    
    JddPickNumP3ViewController *_pickNumP3ViewController;
    JddPickNumP3ListViewController *_pickNumP3ListViewController;
    
    JddPickNumP5ViewController *_pickNumP5ViewController;
    JddPickNumP5ListViewController *_pickNumP5ListViewController;
    
//    PickNum22x5ViewController *_pickNum22x5ViewController;
//    PickNum22x5ListViewController *_pick22x5ListviewController;
    
    JddPickNumSFCViewController *_pickNumSFCViewController;
    JddPickNumSFCListViewController *_pickNumSFCListViewController;
    
    JddPickNumRX9ViewController *_pickNumRX9ViewController;
    JddPickNumRX9ListViewController *_pickNumRX9ListViewController;
    
    JddLotteryOpenDetailSFCViewController *_lotteryOpenSfcDetail;
    
    JddNoticeDetailViewController *_noticeDetail;
    JddTogetherBuyViewController *_togetherBuy;
    JddTogetherBuyViewControllerDetail *_togetherBuyDetail;
    JddPickNum11YDJViewController *_pickNum11YDJViewController;
    JddPickNum11YDJListViewController *_pickNum11YDJListViewController;
    
    JddPickNumCQSSViewController *_pickNumCQSSViewController;
    JddPickNumCQSSListViewController *_pickNumCQSSListViewController;
    
    JddPickNumSportViewHHSelectController *_pickNumSportViewHHSelectController;
    JddBasketBallHHSelectController *_basketBallHHSelectController;
    JddReadRegisterProtocolViewController *_readRegisterProtocolViewController;
    JddReadLotteryProtocolViewController *_readLotteryProtocolViewController;
    JddSafeCenterViewController *_safeCenterProtocolViewController;
    JddCustomerServiceViewController *_customerServiceViewController;
    FiveMatchViewController *_fiveMatchCtl;
    LookForPasswordViewController *_findPassword;
    ConfirmationViewController *_confirmationController;
    JddChangePwdViewController *_changepwdController;
}

@property (assign) UINavigationController  *navigationController;

SHARED_INSTANCE_DECLARE(JddViewControllerManager)

@property (nonatomic, assign) BOOL hideBackItem;

- (void)pushViewControllerWithIndex:(NSInteger)controllerIndex fromController:(UIViewController*)fromController withObject:(id)userInfo withObject2:(id)userInfo2;

- (void)pushViewController:(UIViewController*)viewController;
- (void)removeViewController:(UIViewController*)viewController;
-(void)reflashViewController:(UIViewController*)viewController;
-(void)indexViewController:(UIViewController*)viewController;
-(void)popToRootViewController;
-(void)popToBackViewController;

@end
